using Rsd.Dudu;
using Rsd.Dudu.ModelProvider;
using Rsd.Dudu.ORM;
using Rsd.Faith.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;


namespace Rsd.Faith.Models
{
    /// <summary>
    /// 各所属期分户统计报表
    /// </summary>
    [TablePartitioner("suo_shu_qi","按所属期分表存储")]
    [Table("report_分户账目", "report__fen_hu_zhang_mu", "id")]
    [Serializable]
    public class ReportFenHuZhangMuModel : Rsd.Faith.Core.ModelBase
    {

        /// <summary>
        /// 所属期
        /// </summary>
        [StringType("suo_shu_qi", "所属期", 20, 20)]
        [DisplayName("所属期")]
        public string SuoShuQi { get; set; }
        
        /// <summary>
        /// 账户编号
        /// </summary>
        [TableIndex(TableIndexType.Normal, TableIndexUsing.Hash)]
        [StringType("zhang_hu_bian_hao", "账户编号", 22, 50)]
        [DisplayName("账户编号")]
        public string ZhangHuBianHao { get; set; }

        /// <summary>
        /// 小区编号
        /// </summary>
        [TableIndex(TableIndexType.Normal, TableIndexUsing.Hash)]
        [StringType("xiao_qu_bian_hao", "小区编号", 24, 20)]
        [DisplayName("小区编号")]
        public string XiaoQuBianHao { get; set; }

        /// <summary>
        /// 房屋编号
        /// </summary>
        [TableIndex(TableIndexType.Normal, TableIndexUsing.Hash)]
        [StringType("fang_wu_bian_hao", "房屋编号", 26, 50)]
        [DisplayName("房屋编号")]
        public string FangWuBianHao { get; set; }


        /// <summary>
        /// 期初金额 
        /// </summary>
        [NumericType("qi_chu_jin_e", "期初金额", 27, 20, 2)]
        [DisplayName("期初金额")]

        public decimal QiChuJinE { get; set; }
        /// <summary>
        /// 缴存金额
        /// </summary>
        [NumericType("jiao_cun_jin_e", "缴存金额", 28, 20, 2)]
        [DisplayName("缴存金额")]
        public decimal JiaoCunJinE { get; set; }

        /// <summary>
        /// 增值/利息 收益金额 
        /// </summary>
        [NumericType("shou_yi_jin_e", "增值收益金额", 29, 20, 2)]
        [DisplayName("增值收益金额")]
        public decimal ShouYiJinE { get; set; }

        /// <summary>
        /// 支出金额
        /// </summary>
        [NumericType("shi_yong_jin_e", "支出金额", 30, 20, 2)]
        [DisplayName("支出金额")]
        public decimal ShiYongJinE { get; set; }

        /// <summary>
        /// 期末余额
        /// </summary>
        [NumericType("yu_e", "期末余额", 32, 20, 2)]
        [DisplayName("期末余额")]
        public decimal YuE { get; set; }
         
        /// <summary>
        /// <summary>
        ///  记账中，已扎帐（核算）
        /// </summary>
        [StringType("zhuang_tai", "状态", 34, 10)]
        [DisplayName("状态")]
        public ZhangMuZhuangTai ZhuangTai { get; set; }

        public ReportFenHuZhangMuModel()
        { }

    }
}
